package com.ruoyi.controller;

import com.ruoyi.domain.CustomerInfo;
import com.ruoyi.service.ICustomerInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/webshop/customerInfo")
public class CustomerInfoController {
    @Autowired
    private ICustomerInfoService customerInfoService;

    // 全查
    @GetMapping("/list")
    public List<CustomerInfo> list(){
        List<CustomerInfo> list = customerInfoService.list();
        return list;
    }

}
